package com.easylinkin.linkappapi.messagecenter.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;


@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("app_message_center_detail")
@NoArgsConstructor
public class MessageCenterDetail extends Model<MessageCenterDetail> {

    public MessageCenterDetail(String deviceCode, String deviceTypeName, String position, String leadId, String tenantId, String leadName, String telephone, Integer messageCenterId) {
        this.deviceCode = deviceCode;
        this.deviceTypeName = deviceTypeName;
        this.position = position;
        this.leadId = leadId;
        this.tenantId = tenantId;
        this.leadName = leadName;
        this.telephone = telephone;
        this.messageCenterId = messageCenterId;
    }

    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)

    private Integer id;

    /**
     * 设备编号
     */

    private String deviceCode;

    /**
     * 设备类型名称
     */

    private String deviceTypeName;

    /**
     * 所在位置
     */
    private String position;

    /**
     * 负责人
     */

    private String leadName;

    /**
     * 负责人id
     */

    private String leadId;


    /**
     * 租户id
     */

    private String tenantId;

    /**
     * 联系方式
     */
    private String telephone;

    /**
     * 消息中心id
     */
    private Integer messageCenterId;

}
